package com.wangcanxuan.www.dao.mapper;

import com.wangcanxuan.www.annotation.orm.ReturnType;
import com.wangcanxuan.www.annotation.orm.Select;
import com.wangcanxuan.www.entity.po.Notice;
import com.wangcanxuan.www.entity.po.Tribe;
import com.wangcanxuan.www.proxy.constants.ReturnDataType;

import java.util.List;

/**
 * 通知类Mapper
 *
 * @author HHLJ
 * @date 2022/04/01
 */
public interface NoticeMapper extends BaseMapper<Notice>{

    /**
     * 选择通知列表
     *
     * @param pageCount 页面数
     * @param userId    用户id
     * @return {@link List}<{@link Notice}>
     */
    @Select(sql = "SELECT * FROM `notice` WHERE user_id = ? LIMIT ?,10")
    @ReturnType(returnType = ReturnDataType.LIST)
    List<Notice> selectNoticeList(String userId, int pageCount);
}
